//
//  FirstModel.m
//  TeamProject_1.0
//
//  Created by lanou3g on 15/12/8.
//  Copyright © 2015年 wey. All rights reserved.
//

#import "FirstModel.h"
#import "User.h"
@implementation FirstModel

+ (instancetype)firstModelWithDic:(NSDictionary *)dic {

    FirstModel *model = [[FirstModel alloc]init];
    [model setValuesForKeysWithDictionary:dic];
    NSLog(@"////////////////");
    return model;
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {

}


- (void)setValue:(id)value forKey:(NSString *)key {
    NSLog(@"%@",key);
    if ([key isEqualToString:@"user"]) {
        _user = [User userWithDic:value];
    }
}

@end
